/* Copyright (C) 2008 Robin Debreuil -- Released under the BSD License */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace DDW.VexTo2DPhysics
{
    public class Instance2D
    {
        public string Name;
        public string Type;
        public float X;
        public float Y;
        public float Rotation;
        public float XScale;
        public float YScale;

        public Instance2D(string name, string type, float x, float y, float rotation, float xScale, float yScale)
        {
            this.Name = name;
            this.Type = type;
            this.X = x;
            this.Y = y;
            this.Rotation = rotation;
            this.XScale = xScale;
            this.YScale = yScale;
        }

        public void Dump(StringWriter sw)
        { 
            sw.WriteLine("            {" + 
                "instName: \"" + Name + 
                "\", type:\"" + Type + 
                "\", x:" + X + 
                ", y:" + Y + 
                ", rot:" + Rotation + 
                ", xScale:" + XScale + 
                ", yScale:" + YScale + "},");       
        }

    }
}
